#coding=utf-8
__author__ = 'Meteor'
from flask import Flask,jsonify
import seting,sys

app = Flask(__name__)


@app.route(seting.uri_path,methods=['GET',"POST"])
def view():
    data = seting.data
    headers = seting.headers
    status_code = seting.status_code

    return jsonify(data),status_code,headers

def run():
    app.run()

def stop():
    sys.exit()